home *** CD-ROM | disk | FTP | other *** search
- Path: news.inet.fi!usenet
- From: Harri Halttunen <Harri.Halttunen@enermet.fi>
- Newsgroups: comp.lang.c++
- Subject: Re: Performance: C vs. C++
- Date: Fri, 26 Jan 1996 17:34:45 +0200
- Organization: Telecom Finland News Service
- Message-ID: <3108F495.4828@enermet.fi>
- References: <30F6BAAC.12B5@iastate.edu> <4da9pn$a45@news.bridge.net> <4dnpl2$c8g@classic.iinet.com.au> <31032A4F.6695@iastate.edu>
- NNTP-Posting-Host: halttha.enermet.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win95; I)
-
- Steve Lee wrote:
- >
- > But in the FAQ it says that C++ doesn't do runtime type checking???
- >
-
- This is included into a new standard of C++.
-
- Runtime type checking is done only when asked. Well... actually dynamic
- type casting (dynamic_cast<...>()) does it as well.
-
- There is a minor drawback if you use RTTI. The type information of a
- class must be somewhere and it is included into a meta data of the
- class. So, this increases the size of the object.
-